package org.wanho.manager.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Author：汤小洋
 * Date：2023-04-23 14:20
 * Description：<描述>
 */
public class Role  implements Serializable {
    private Integer id;
    private String roleName;
    private List<Permission> permissions = new ArrayList<>();

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public List<Permission> getPermissions() {
        return permissions;
    }

    public void setPermissions(List<Permission> permissions) {
        this.permissions = permissions;
    }

    @Override
    public String toString() {
        return "Role{" +
                "id=" + id +
                ", roleName='" + roleName + '\'' +
                ", permissions=" + permissions +
                '}';
    }
}
